/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mx.itschapala.dsw2.bar.dao;

import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import mx.itschapala.dsw2.bar.modelo.Usuario;
import mx.itschapala.dsw2.bar.modelo.Venta;

/**
 *
 * @author Dhavis
 */
@Stateless
public class VentaDao extends AbstractDao<Venta> implements VentaDaoLocal {
    @PersistenceContext(unitName = "PuntoVentaBar-ejbPU")
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public VentaDao() {
        super(Venta.class);
    }

    @Override
    public List<Venta> findIncompleteByUser(Usuario user) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Object findLends(Venta v) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
